package com.mx.cofee;

import java.awt.BorderLayout;
import java.awt.Point;
import java.awt.Toolkit;
import java.awt.image.BufferedImage;


import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.WindowConstants;

public class Gtris extends JFrame{

	JLabel statusBar;


	   public Gtris() {		   	
	    	statusBar = new JLabel(" 0");    	    
	        add(statusBar, BorderLayout.SOUTH);        
	        Board board = new Board(this);	        
	        add(board);	        
	        board.start();        
	        setSize(330, 600);
	        setTitle("Gtris");
	        setDefaultCloseOperation(EXIT_ON_CLOSE);        
	   }

	   public JLabel getStatusBar() {
	       return statusBar;
	   }

	    public static void main(String[] args) {

	    	Gtris game = new Gtris();
	        game.setLocationRelativeTo(null);
	        game.setVisible(true);        
	    } 

   /*
   
    public static void main(String[] args) {
    	Board board = new Board();    	    	
        board.setLocationRelativeTo(null);
        board.setVisible(true);                                                
                
        board.setSize(330, 600);
        board.setTitle("Gtris");
        board.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        JPanel panel = new JPanel();
        JLabel statusBar = new JLabel(" 0");    	    
        panel.add(statusBar, BorderLayout.SOUTH);
        panel.setBounds(0, 0, 320, 480);
        panel.setLayout(null);
        board.add(panel);
        Cursor cursor = new Cursor();
        cursor.setY(450);
        board.pack();
    } 

*/
}
